.preview{
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;  // 使用视窗高度
  position: relative;  // 为绝对定位提供参考

  .previewImg {
    flex: 1;
    margin: 0;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .previewResult {
    padding: 0px;
    margin: 0px 0px;
    border-radius: 1px;
    display: flex;
    flex-direction: column;
    min-height: 10px;
    // box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.1);  // 添加上阴影区分
    z-index: 100;  // 确保在其他内容之上
    height: 65px;  // 设置固定高度


    .previewResultTitle {
      font-size: 16px;
      font-weight: 500;
      margin-bottom: 0px;
      padding-left: 16px;
    }
    .resultItemGroup {
      display: flex;
      flex-wrap: nowrap;
      gap: 5px;
      overflow-x: auto;
      padding: 8px 0px;
      justify-content: center;
      width: 100%;
      margin-top: auto;
      min-height: 50px;
      box-sizing: border-box;
      
    }
    
  }
}

.resultItem {
  flex: 0 0 auto;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;

  .resultItemImg {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
  }

  // 未选中状态的遮罩
  &:not(.selected)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);  // 灰色遮罩
    border-radius: 8px;
  }

  // 选中状态
  &.selected {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);

    &:hover {
      transform: scale(1.05);  // 选中状态下不再放大
    }
  }

  // 悬停效果
  &:hover {
    transform: scale(1.05);
  }

}

.previewHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;

  .previewHeaderLeft {
    flex: 1;
    .previewTitle {
      margin: 0;
      font-size: 14px;
      font-weight: 500;
      padding: 5px;
    }
  }

  .previewHeaderCenter {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .previewHeaderRight {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

.expandButton {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;  // 添加文字加粗
  
}

.defaultAnimation {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -10%;
  
  .placeholderText {
    margin-top: 16px;
    color: #333;
    font-size: 16px;
  }
}

.loadingState {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  :global {
    .ant-spin-dot-item {
      background-color: #0fbaad;
    }
    .ant-spin-text {
      color: #0fbaad;
    }
  }
}